import { default as request, cloud } from '@/framework/utils/request'
export default ({
  fetchPage(params) {
    return request({
      url: cloud.dqbasic + '/paper/page',
      method: 'get',
      params
    })
  },
  add(data) {
    return request({
      url: cloud.dqbasic + '/paper/add',
      method: 'post',
      data
    })
  },
  detail(id) {
    return request({
      url: cloud.dqbasic + '/paper/detail',
      method: 'get',
      params: {
        id
      }
    })
  },
  delete(idList) {
    return request({
      url: cloud.dqbasic + '/paper/delete',
      method: 'post',
      data: {
        idList
      }
    })
  }
})
